package com.glsx.auto;

/**
 * Created by linxy on 2017/4/23.
 */
public enum DefaultPackage {
    COMMON_BASE("base"),
    COMMON_ENTITY("entity"),
    COMMON_SERVICE("service"),

    CONTAINER_BASE("base"),
    CONTAINER_DAO("dao"),
    CONTAINER_SERVICE_IMPL("service.impl");

    private String name;

    DefaultPackage(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public String getDirectory() {
        return name.replace('.', '/');
    }
}
